import request from "@/service";

// 登录接口
export function login(data) {
  return request({
    url: "/admin/login",
    method: "post",
    data,
  });
}

// 注册接口
export function register(data) {
  return request({
    url: "/admin/add",
    method: "post",
    data,
  });
}

// homepage折线图接口
export function kData(data) {
  return request({
    url: "/data/kData",
    method: "get",
    data,
  });
}

// homepage简单图表数据
export function simpleData(data) {
  return request({
    url: "/data/simpleData",
    method: "get",
    data,
  });
}

// 获取商品列表数据
export function productList(data) {
  return request({
    url: "/pro/list",
    method: "get",
    data,
  });
}
